From: Keir Fraser Date: Tue, 20 Jan 2009 13:22:28 +0000 (+0000) Subject: passthrough: fix typo X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14014^2~46 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=93d98953f7249efe10ddcb71888fc14cdbdbf30a;p=xen.git passthrough: fix typo The indentation level of the following code was incidentally changed when event_lock was added to protect dpci. It causes no issue but does look a little weird, so fix it. Signed-off-by: Qing He --- diff --git a/xen/drivers/passthrough/io.c b/xen/drivers/passthrough/io.c index c2736b76e2..d240441c15 100644 --- a/xen/drivers/passthrough/io.c +++ b/xen/drivers/passthrough/io.c @@ -84,13 +84,13 @@ int pt_irq_create_bind_vtd( memset(hvm_irq_dpci, 0, sizeof(*hvm_irq_dpci)); for ( int i = 0; i < NR_IRQS; i++ ) INIT_LIST_HEAD(&hvm_irq_dpci->mirq[i].digl_list); - } - if ( domain_set_irq_dpci(d, hvm_irq_dpci) == 0 ) - { - xfree(hvm_irq_dpci); - spin_unlock(&d->event_lock); - return -EINVAL; + if ( domain_set_irq_dpci(d, hvm_irq_dpci) == 0 ) + { + xfree(hvm_irq_dpci); + spin_unlock(&d->event_lock); + return -EINVAL; + } } if ( pt_irq_bind->irq_type == PT_IRQ_TYPE_MSI )